home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / RTANKSRC.ZIP / RADIO.H < prev    next >
Text File  |  1989-02-13  |  618b  |  29 lines

  1.  
  2. #define   RADIO struct radio_type
  3. #define p_RADIO RADIO *
  4. #define   CHANNEL struct channel_type
  5. #define p_CHANNEL CHANNEL *
  6.  
  7. /*
  8.  * This should be 1 more than the actual number expected.
  9.  * IE: 5 == 4 messages
  10.  */
  11. #define MAX_MESSAGES 6
  12.  
  13. RADIO {
  14.    int note1, note2, note3;
  15. };
  16.  
  17. CHANNEL {
  18.    int head;
  19.    int tail;
  20.    RADIO message[MAX_MESSAGES];
  21. };
  22.  
  23. void read_message(p_CHANNEL c, int *n1, int *n2, int *n3);
  24. void inc_pointer(int *p);
  25. int peek_ahead(int p);
  26. void add_message_to_channel(p_CHANNEL c, int n1, int n2, int n3);
  27. void clear_channel(p_CHANNEL c);
  28. BOOL any_messages(p_CHANNEL c);
  29.